<template>
    <div>
        <van-search v-model="value" shape="round" background="red" @search="onSearch">
            <template #right-icon>
                <div @click="onClickButton"><van-icon name="scan" /></div>
            </template>
        </van-search>
    </div>
</template>

<script setup>
import { useRouter } from 'vue-router'
const router=useRouter()
const onSearch=()=>{
    router.push('/home/search')
}
const onClickButton=()=>{
    router.push('/home/search')
}
</script>

<style lang="scss" scoped></style>